			
            <div id="title-bar">
            <!--
                <div id="element-count">
                    <div id="info-element">
                        <div class="number"><?php echo $countpack;?></div>
                        <span>gói kênh</span>
                    </div>
                    <div id="img-element">
                    	<div class="nav-icons ico-channel"></div>
                    </div>
                </div>
                -->
                <h2 id="title-page">Chương trình phát sóng <a class="label" href="<?php echo base_url('administrator/broadcasts/add') ?>">+ thêm chương trình</a></h2>
            </div>
            <div class="row-fluid">
            	<?php if(isset($textkeysearch)):?>
                
                <h4>
                	CÓ <?php echo ($listbroadcasts)?count($listbroadcasts):0;?> KẾT QUẢ ĐƯỢC TÌM KIẾM TỪ "<em><?php echo $textkeysearch?></em>"
                    <a href="" onClick="parent.location='';return false;"><i class="icon-remove-sign"></i></a>
                </h4>
                <?php endif;?>
                
            </div>
            <div class="row-fluid">
            	<div class="span8">  
                	<?php echo form_open('administrator/broadcasts/manager','method="get" name="form_filter_broadcasts"')?>
                	
                        <div class="input-group filter-group">
                            <span class="input-group-addon"><i class="icon-filter"></i></span>
                            
                            <select name="channelid" onChange="document.form_filter_broadcasts.submit()" >
                                <option value="" disabled selected>Chọn kênh...</option>
                                <?php foreach($listchannel as $row){?>
                                
                                <option value="<?php echo $row->ChannelId ?>" <?php echo ($row->ChannelId==$channelid)?"selected='selected'":"" ?>><?php echo $row->NameChannel_vn ?></option>
                            <?php }?>
                            
                            </select>
                      
                            <div class="bfh-datepicker" data-format="d-m-y" data-min="<?php echo $date_start;?>" data-max="today"  data-date="<?php echo $date;?>" data-name="date" data-input="date-filter">
							</div>
                        </div>
                    <?php echo form_close()?>
                    
                    <script type="text/javascript">
					$(document).ready(function(e) {
                        $('.filter-group .bfh-datepicker .input-group-addon').remove();
						$('.date-filter').focusout(function(){
							setTimeout(function(){
							document.form_filter_broadcasts.submit();
							},200);
						});
                    });
                    	
                    </script>
                </div>
            	<div class="span4">
                	<div class="pull-right">
                 
                        <?php echo form_open('administrator/broadcasts/manager', 'id="formSearch" class="form-inline"') ?>
                        	<div class="input-append">
                            	<input type="text" value="<?php echo set_value('keysearch')?>" name="keysearch" id="keysearch" placeholder="Nhập từ khóa" class="input-medium" autocomplete="off" />
                                <button class="btn">
                                	<i class="icon-search"></i>
                                </button>
                            </div>
                        <?php echo form_close() ?>
                  
                    </div>
                </div>
            </div>
            <div class="clearfix"></div>
 
                <table class="table table-striped table-bordered genaral-tables" width="100%">
                	<thead>
                    	<tr>
                        	<th width="3%">#</th>
                            <th width="40%">Tên chương trình</th>
                            <th width="16%">Kênh</th>
                            <th width="10%">Ngày phát sóng</th>
                            <th width="8%">Thời gian</th>
                            <th width="12%">Trạng thái</th>
                            <th width="11%">Hành động</th>
                        </tr>
                    </thead>
                    <tbody>
                    	<?php if($listbroadcasts): foreach($listbroadcasts as $row){?>
                        
                        <tr rel="<?php echo $row->ProgramId ?>" id="table_row_<?php echo $row->ProgramId?>">
                            <td class="text-center stt"><?php echo $row->stt ?></td>
                            <td>
                            	<a href=""><?php echo $row->NameProgram_vn ?></a>
                            </td>
                            <td class="text-center"><?php echo $row->NameChannel_vn; ?></td>
                            <td class="text-center"><?php $strtotime = strtotime($row->Date); echo date('d-m-Y', $strtotime); ?></td>
                            <td class="text-center"><?php $strtotime = strtotime($row->Time); echo date('H:i', $strtotime); ?></td>
                            <td class="text-center status"><small><?php if($row->Status==1){echo "<span class='label label-success'>Hoạt động</span>";}elseif($row->Status==2){echo "<span class='label'>Không hoạt động</span>";} ?></small></td>
                            <td class="table-col-action text-center">
                                <a class="btn-change-status" rel="tooltip" href="" title="Đổi trạng thái" status="<?php echo $row->Status?>"><i class="<?php echo ($row->Status==1)?'icon-ok-sign':(($row->Status==2)?'icon-remove-sign':'');?>"></i></a>
                                <a rel="tooltip" href="<?php echo base_url('administrator/broadcasts/modify?programid='.$row->ProgramId) ?>" title="Sửa mục">
                                	<i class="icon-pencil"></i>
                                </a>
                                <a class="btn-delete" rel="tooltip" href="" title="Xóa mục" >
                                	<i class="icon-remove"></i>
                                </a>
                            </td>
                        </tr>
                       
                        <?php } else: ?>
                        
                        <tr>
                            <td class="text-center" colspan="7">
                                Không có mục nào được tìm thấy
                            </td>
                        </tr>
                       	<?php endif;?>
                        
                        <tr>
                            <td class="tableFooter" colspan="7">
                            	
                            </td>
                        </tr>
                    </tbody>
       			</table>
      